//
//  Tools.h
//  MagicBox
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@import UIKit;

@interface Tools : NSObject


+ (NSDate *)returnDate:(NSString *)string;
+ (NSString *)returnString:(NSDate *)date;


// 文本高
+ (CGFloat)getTextHeight:(NSString *)text withWidth:(CGFloat)width withFontSize:(NSInteger)size;

// 文本宽
+ (CGFloat)getTextWidth:(NSString *)text withFontSize:(NSInteger)size;

// 图片高
+ (CGFloat)getImageHeight:(NSString *)imageName withWidth:(CGFloat)width;


@end
